import type { tokenParams } from "@/types/user"
import type { UserIndividualType } from "@/types/userInfo"
import { request } from "@/utils/request"

//登陆
export const loginAPI = (data:object) => {
    return request<tokenParams>('/v1_0/authorizations','POST',data)
}

export const getusernameAPI = () => {
    return request<UserIndividualType>('/v1_0/user/profile','GET')
}